package cn.mianxZY4;

public class Employee extends Person {
    private String office;
    private double salary;
    private String hiredate;

    public String getOffice() {
        return office;
    }

    public void setOffice(String office) {
        this.office = office;
    }

    public String getHiredate() {
        return hiredate;
    }

    public void setHiredate(String hiredate) {
        this.hiredate = hiredate;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }




    public Employee(String name, String address, String telphone, String email,
                    String office,String hiredate,double salary) {
        super(name, address, telphone, email);
        this.office=office;
        this.hiredate=hiredate;
        this.salary=salary;

    }
    public void EmployeeShow(){
        System.out.println("姓名："+super.getName());
        System.out.println("地址："+super.getAddress());
        System.out.println("电话："+super.getTelphone());
        System.out.println("邮箱："+super.getEmail());
        System.out.println("办公："+this.office);
        System.out.println("收购日期："+this.hiredate);
        System.out.println("工资："+this.salary);

    }

}
